package com.biye.api.tool.security.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author Maple.Chen
 * @Description 判断用户是否有访问该接口的权限。（根据URI）
 * @Date 14:12 2021/3/7
 **/
public interface RbacService {

    // 判断用户是否具有访问当前接口的权限
    boolean hasPermission(HttpServletRequest request, Authentication authentication);

}
